Skip to content

feat(magicsock): add DERPTLSConfig for custom TLS configuration#105

Merged
deansheather merged 1 commit intocoder:mainfrom
ibdafna:nflx/derp-tls-config
Mar 11, 2026
Merged

feat(magicsock): add DERPTLSConfig for custom TLS configuration#105
deansheather merged 1 commit intocoder:mainfrom
ibdafna:nflx/derp-tls-config

Conversation

@ibdafna
Copy link

@ibdafna ibdafna commented Mar 6, 2026

Add ability to configure a custom TLS config for DERP region clients. This enables scenarios like trusting internal CAs or presenting client certificates. See coder/coder#22695 for related changes.

This code still needs more testing before I can mark it as ready for review, but I'm opening this PR in draft mode for anyone who may wish to review the changes earlier.

Disclaimer: I used Cursor, with supervision, to author this code.

Add ability to configure a custom TLS config for DERP region clients.
This enables scenarios like trusting internal CAs or presenting client
certificates for DERP servers behind reverse proxies.
@deansheather
Copy link
Member

The code looks good to me and seems to cover all bases. I wouldn't worry too much about adding tests here, we can add tests in the coder repo instead.

Happy to approve and merge it once you're ready

@deansheather
Copy link
Member

The failing checks are expected, we don't maintain the CI in this fork other than getting tests to pass.

@ibdafna ibdafna marked this pull request as ready for review March 11, 2026 05:32
@ibdafna ibdafna requested a review from a team as a code owner March 11, 2026 05:32
@deansheather deansheather merged commit 8ffb3e9 into coder:main Mar 11, 2026
22 of 26 checks passed
@deansheather
Copy link
Member

Thank you for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants